About the Document object

The Document object refers to the selected document and is available to all event procedures that apply to documents. The Document object is not passed as a parameter to most event procedures.